<?php

class myUser extends sfBasicSecurityUser
{
	public $akPracownik=null;
	
	public function getPracownik()
	{
		$c_prac = new Criteria();
  		$c_prac->add(PracownikPeer::ID,1);  			
	  	$results_prac=PracownikPeer::doSelect($c_prac);
		foreach($results_prac as $result)
		{
			return $result;	
		}	
	}
	
	function getUserId()
	{
		return $this->getPracownik()->getId();
	}
	
	function getZnajomiSession()
	{ 
            return array(2,3);
	}
	
	function isAuthenticated()
	{
		return true;
	}
}
